package com.edu.app.constant;

public interface ErrorConstant {
    String INVALID_USER_OR_PASSWORD = "INVALID_USER_OR_PASSWORD";
    Integer INVALID_USER_OR_PASSWORD_CODE = 20001;
    String INVALID_USER_OR_PASSWORD_MESSAGE = "The username or password is invalid";

    String INVALID_VERIFICATION = "INVALID_VERIFICATION";
    Integer INVALID_VERIFICATION_CODE = 20002;
    String INVALID_VERIFICATION_MESSAGE = "Verification code is invalid or expired.";

    String SIGNUP_USER_FAILED = "SIGNUP_USER_FAILED";
    Integer SIGNUP_USER_FAILED_CODE = 20003;
    String SIGNUP_USER_FAILED_MESSAGE = "Sign up failed. Please contact the system administrator.";

    String USER_ALREADY_EXISTS = "USER_ALREADY_EXISTS";
    Integer USER_ALREADY_EXISTS_CODE = 20004;
    String USER_ALREADY_EXISTS_MESSAGE = "The user already exists.";

    String USER_NOT_EXISTS = "USER_NOT_EXISTS";
    Integer USER_NOT_EXISTS_CODE = 20005;
    String USER_NOT_EXISTS_MESSAGE = "The user doesn't exist.";

    String INVALID_VERIFY_CODE = "INVALID_VERIFY_CODE";
    Integer INVALID_VERIFY_CODE_CODE = 20006;
    String INVALID_VERIFY_CODE_MESSAGE = "The verify code is invalid. Please try it again.";

    String UNAUTHORIZED_ROLE = "UNAUTHORIZED_ROLE";
    Integer UNAUTHORIZED_ROLE_CODE = 20007;
    String UNAUTHORIZED_ROLE_MESSAGE = "You don't have the correct role to access this API.";

    String UNAUTHENTICATED = "UNAUTHENTICATED";
    Integer UNAUTHENTICATED_CODE = 20008;
    String UNAUTHENTICATED_MESSAGE = "You need the authentication information to access this API.";

    String CHANGE_PASSWORD_NOT_SAME_USER = "CHANGE_PASSWORD_NOT_SAME_USER";
    Integer CHANGE_PASSWORD_NOT_SAME_USER_CODE = 20009;
    String CHANGE_PASSWORD_NOT_SAME_USER_MESSAGE = "You don't have the role to change other user's password.";

    String USER_ROLE_ALREADY_EXISTS = "USER_ROLE_ALREADY_EXISTS";
    Integer USER_ROLE_ALREADY_EXISTS_CODE = 20010;
    String USER_ROLE_ALREADY_EXISTS_MESSAGE = "The user already has this role.";

    String ROLE_ALREADY_EXISTS = "ROLE_ALREADY_EXISTS";
    Integer ROLE_ALREADY_EXISTS_CODE = 20011;
    String ROLE_ALREADY_EXISTS_MESSAGE = "The role already exists.";

    String ROLE_NOT_EXISTS = "ROLE_NOT_EXISTS";
    Integer ROLE_NOT_EXISTS_CODE = 20012;
    String ROLE_NOT_EXISTS_MESSAGE = "The role doesn't exist.";

    String PERMISSION_NOT_EXISTS = "PERMISSION_NOT_EXISTS";
    Integer PERMISSION_NOT_EXISTS_CODE = 20013;
    String PERMISSION_NOT_EXISTS_MESSAGE = "The permission doesn't exist.";

    String PERMISSION_ALREADY_EXISTS = "PERMISSION_ALREADY_EXISTS";
    Integer PERMISSION_ALREADY_EXISTS_CODE = 20014;
    String PERMISSION_ALREADY_EXISTS_MESSAGE = "The permission already exists.";

    String ACTIVITY_ALREADY_EXISTS = "ACTIVITY_ALREADY_EXISTS";
    Integer ACTIVITY_ALREADY_EXISTS_CODE = 20015;
    String ACTIVITY_ALREADY_EXISTS_MESSAGE = "The activity already exists.";

    String CUSTOMER_PHONE_ALREADY_EXISTS = "CUSTOMER_PHONE_ALREADY_EXISTS";
    Integer CUSTOMER_PHONE_ALREADY_EXISTS_CODE = 20016;
    String CUSTOMER_PHONE_ALREADY_EXISTS_MESSAGE = "The phone number already exists.";

    String USER_ACTIVITY_ALREADY_EXISTS = "USER_ACTIVITY_ALREADY_EXISTS";
    Integer USER_ACTIVITY_ALREADY_EXISTS_CODE = 20017;
    String USER_ACTIVITY_ALREADY_EXISTS_MESSAGE = "The user already has this activity.";

    String LIST_OF_VALUE_ALREADY_EXISTS = "LIST_OF_VALUE_ALREADY_EXISTS";
    Integer LIST_OF_VALUE_ALREADY_EXISTS_CODE = 20018;
    String LIST_OF_VALUE_ALREADY_EXISTS_MESSAGE = "The list of value already exists.";

    String CUSTOMER_ACTIVITY_ALREADY_EXISTS = "CUSTOMER_ACTIVITY_ALREADY_EXISTS";
    Integer CUSTOMER_ACTIVITY_ALREADY_EXISTS_CODE = 20019;
    String CUSTOMER_ACTIVITY_ALREADY_EXISTS_MESSAGE = "The customer already has this activity.";

    String CONTRACT_ALREADY_EXISTS = "CONTRACT_ALREADY_EXISTS";
    Integer CONTRACT_ALREADY_EXISTS_CODE = 20020;
    String CONTRACT_ALREADY_EXISTS_MESSAGE = "The contract already exists.";

    String CONTACT_ALREADY_EXISTS = "CONTACT_ALREADY_EXISTS";
    Integer CONTACT_ALREADY_EXISTS_CODE = 20021;
    String CONTACT_ALREADY_EXISTS_MESSAGE = "The contact already exists.";


    String OPTY_ALREADY_EXISTS = "OPPORTUNITY_ALREADY_EXISTS";
    Integer OPTY__ALREADY_EXISTS_CODE = 20022;
    String OPTY__ALREADY_EXISTS_MESSAGE = "The opportunity already exists.";

    String CONTRACT_LESSON_ALREADY_EXISTS = "CONTRACT_LESSON_ALREADY_EXISTS";
    Integer CONTRACT_LESSON_ALREADY_EXISTS_CODE = 20023;
    String CONTRACT_LESSON_ALREADY_EXISTS_MESSAGE = "The contract already has this lesson.";


    String CUSTOMERTRACE_ALREADY_EXISTS = "CUSTOMERTRACE_ALREADY_EXISTS";
    Integer CUSTOMERTRACE_ALREADY_EXISTS_CODE = 20024;
    String CCUSTOMERTRACE_ALREADY_EXISTS_MESSAGE = "The customer trace has been added .";

    String CUSTOMER_FEEDBACK_ALREADY_EXISTS = "CUSTOMER_FEEDBACK_ALREADY_EXISTS";
    Integer CUSTOMER_FEEDBACK_ALREADY_EXISTS_CODE = 20025;
    String CUSTOMER_FEEDBACK_ALREADY_EXISTS_MESSAGE = "The feedback of this customer's activity already exists.";

    String CUSTOMER_LESSON_ALREADY_EXISTS = "CUSTOMER_LESSON_ALREADY_EXISTS";
    Integer CUSTOMER_LESSON_ALREADY_EXISTS_CODE = 20026;
    String CUSTOMER_LESSON_ALREADY_EXISTS_MESSAGE = "This customer's lesson already exists.";

    String USER_LESSON_NOT_EXISTS = "USER_LESSON_NOT_EXISTS";
    Integer USER_LESSON_NOT_EXISTS_CODE = 20027;
    String USER_LESSON_NOT_EXISTS_MESSAGE = "学员未关联相应的课程，请先关联再刷课";

    String PHONE_CANNOT_BE_NULL = "PHONE_CANNOT_BE_NULL";
    Integer PHONE_CANNOT_BE_NULL_CODE = 20028;
    String PHONE_CANNOT_BE_NULL_MESSAGE = "电话号码不能为空";

    String USER_NOT_ACTIVE = "USER_NOT_ACTIVE";
    Integer USER_NOT_ACTIVE_CODE = 20029;
    String USER_NOT_ACTIVE_MESSAGE = "该用户已禁止访问，请和管理员联系.";

    String COMMON_EXCEPTION = "COMMON_EXCEPTION";
    Integer COMMON_EXCEPTION_CODE = 20100;
    String COMMON_EXCEPTION_MESSAGE = "This is a common exception. We will use the exception message instead.";

    String SERVER_INTERNAL_ERROR = "SERVER_INTERNAL_ERROR";
    Integer SERVER_INTERNAL_ERROR_CODE = 21001;
    String SERVER_INTERNAL_ERROR_MESSAGE = "Server internal error. Please contact the system administrator.";

    String BAD_REQUEST = "BAD_REQUEST";
    Integer BAD_REQUEST_CODE = 21002;
    String BAD_REQUEST_MESSAGE = "Bad request. Please contact the system administrator for assistance.";

    String ACCESS_DENIED = "ACCESS_DENIED";
    Integer ACCESS_DENIED_CODE = 21003;
    String ACCESS_DENIED_MESSAGE = "Access denied. You may use an expired token.";

    String OLD_PWD_ERROR = "OLD_PWD_ERROR";
    Integer OLD_PWD_ERROR_CODE = 21004;
    String OLD_PWD_ERROR_MESSAGE = "The old password is not correct.";

    String CUSTOMER_DETAILS_ALREADY_EXISTS = "USER_ALREADY_EXISTS";
    Integer CUSTOMER_DETAILS_ALREADY_EXISTS_CODE = 22100;
    String CUSTOMER_DETAILS_ALREADY_EXISTS_MESSAGE = "The customer details already exists.";

    String CUSTOMER_DETAILS_NOT_EXISTS = "CUSTOMER_DETAILS_NOT_EXISTS";
    Integer CUSTOMER_DETAILS_NOT_EXISTS_CODE = 22101;
    String CUSTOMER_DETAILS_NOT_EXISTS_MESSAGE = "Customer details not exists";

    String UPLOAD_FILE_ERROR = "UPLOAD_FILE_ERROR";
    Integer UPLOAD_FILE_ERROR_CODE = 21005;
    String  UPLOAD_FILE_ERROR_MESSAGE = "The file is failing to be uploaded.";


    String  INVALID_WXUSER = "INVALID_WXUSER";
    Integer INVALID_WXUSER_CODE = 21006;
    String  INVALID_WXUSER_MESSAGE = "The wechat user has already been bound to another user.";
}
